mini-os/tpmback: set up callbacks before enumeration
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 21 Mar 2013 20:11:20 +0000 (16:11 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 12 Apr 2013 13:28:17 +0000 (14:28 +0100)
commit368fcb52643105d80c4705afa557647c8f7114c5
treed8b7fc9260c92ff9297ebc6303e01ac5a929ee28
parente66cb3294f3aa815ae6741b7030dfeb2ea801284
mini-os/tpmback: set up callbacks before enumeration

The open/close callbacks in tpmback cannot be properly initalized in
order to catch the initial enumeration events because init_tpmback
clears the callbacks and then asynchronously starts the enumeration of
existing tpmback devices. Fix this by passing the callbacks to
init_tpmback so they can be installed before enumeration.

This also removes the unused callbacks for suspend and resume.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
extras/mini-os/include/tpmback.h
extras/mini-os/tpmback.c
stubdom/vtpm/vtpm.c
stubdom/vtpmmgr/init.c